Home

Operator Usage

Name

select

Description

select[k1, k2] sp
select the k1'th to the k2'th elements from the given superposition
indices start from 1, not 0
also, final element has index -1, 2nd last element -2, and so on.


Examples

select[2, 4] split |abcdefg>
    |b> + |c> + |d>

select[-3, -1] split |abcdefg>
    |e> + |f> + |g>


See also

Operator type

core compound